﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Lucid.ESA.ClientDataSystem.Domain" namespace="Lucid.ESA.ClientDataSystem.Domain.Entities">
  <class name="Site" table="`Site`">
    <id name="Id" column="`Id`" type="long">
      <generator class="identity" />
    </id>
    <property name="AddressLine1" column="`AddressLine1`" />
    <property name="AddressLine2" column="`AddressLine2`" />
    <property name="AddressLine3" column="`AddressLine3`" />
    <property name="AddressLine4" column="`AddressLine4`" />
    <property name="PostCode" column="`PostCode`" />
    <property name="MainSite" column="`MainSite`" />
    <property name="Deleted" column="`Deleted`" />
    <many-to-one name="Client" column="`ClientID`" cascade="all" not-null="true" />
  </class>
</hibernate-mapping>